package com.lxf.cloudorder.mapper;

import com.lxf.cloudorder.bean.OrderBean;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Component;

/**
 * @author 罗兴发
 * @data 2025/6/23 11:54
 * @description：es持久层
 */
@Component
public interface OrderItemRepository extends ElasticsearchRepository<OrderBean, String> {
//    /**
//     * 查询内容标题查询
//     * @param name 标题
//     * @return 返回关键字高亮的结果集
//     */
//    @Highlight(
//            fields = {@HighlightField(name = "name")},
//            parameters = @HighlightParameters(preTags = {"<span style='color:red'>"}, postTags = {"</span>"}, numberOfFragments = 0)
//    )
//    List<SearchHit<OrderBean>> findOrderBeansByGoodName(String name);
}